<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <h1 v-text="name"></h1>

        <h2 v-html="name"></h2>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        var vm=new Vue({
            el:"#app",
            data:{
                name:"<h1>text</h1>",
                num:1
            }
        })
    </script>
</body>
</html>